package pushup.model;

import java.util.LinkedList;
import java.util.List;

public class Package {
	
	public static final String PRIMITVE_STUB_NAME = "[primitive]";

	private String name;
	
	private List<Type> types = new LinkedList<Type>();
	
	public Package(String name){
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public List<Type> getTypes() {
		return types;
	}
	
	public void addType(Type type){
		types.add(type);
	}

	public boolean isPrimitiveStub() {
		return getName().equals(PRIMITVE_STUB_NAME);
	}

}
